//
//  AppTools.m
//  喜马拉雅改良版框架
//
//  Created by dllo on 15/12/21.
//  Copyright © 2015年 蓝鸥科技. All rights reserved.
//

#import "AppTools.h"

@implementation AppTools
+(CGSize)labelRectWithLabelSize:(CGSize)size
                      LabelText:(NSString *)labelText
                           Font:(UIFont *)font{
    NSDictionary  *dic = [NSDictionary dictionaryWithObjectsAndKeys:font, NSFontAttributeName, nil];
    CGSize actualsize = [labelText boundingRectWithSize:size options:NSStringDrawingUsesLineFragmentOrigin attributes:dic context:nil].size;
    return actualsize;
}
@end
